package cc.yihy.storage;

import cc.yihy.storage.entity.UpResult;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author Yihy
 * @version V1.0
 * @Package cc.yihy.storage
 * @Description:
 * @date 2017/6/27 15:50
 */
public interface StorageClient {


    //普通上传
    UpResult upload(String filePath, String fileKey) throws IOException;

    UpResult upload(InputStream inputStream, String fileKey);

    String getDomain();

    String getImageUrl(String fileKey);

    boolean delete(String fileKey);
}
